package com.netpace.iem.umair.testmodel;

import static org.junit.Assert.*;

import org.junit.Test;

import com.netpace.iem.umair.model.Category;

public class CategoryTest {
	
	Category test;

	@Test
	public void testCategory() {
		test = new Category();
		assertNotNull("Shouldn't be null", test);
	}

	@Test
	public void testCategoryStringString() {
		test = new Category(1, "Utility Bills", "Bills for phone, internet, electricity, gas, etc");
		assertNotNull("Shouldn't be null", test);
	}

	@Test
	public void testCategoryString() {
		test = new Category(1, "Utility Bills");
		assertNotNull("Shouldn't be null", test);
	}
	
	@Test
	public void testSetGetCategoryName() {
		test = new Category();
		String s = "Utility Bills";
		test.setCategoryName(s);
		assertEquals("Category shoould be Utility Bills", s, test.getCategoryName());
	}

	@Test
	public void testSetGetCategoryDesc() {
		test = new Category();
		String s = "Bills for phone, internet, electricity, gas, etc";
		test.setCategoryName(s);
		assertEquals("Category Desc Should be Bills for phone, internet, electricity, gas, etc", 
						s, test.getCategoryDesc());
	}

}
